package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.OrderItemDao;
import com.framework.loippi.entity.OrderItem;
import com.framework.loippi.service.OrderItemService;
import java.util.List;
/**
 * SERVICE - OrderItem(订单药品项)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class OrderItemServiceImpl extends GenericServiceImpl<OrderItem, Long> implements OrderItemService {
	
	@Autowired
	private OrderItemDao orderItemDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(orderItemDao);
	}

	public List<OrderItem> findListByPage(Object parameter){
		return orderItemDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return orderItemDao.deletes( parameter);
	}

	@Override
	public List<OrderItem> findByOrderId(Long orderId) {
		return orderItemDao.findByOrderId(orderId);
	}


}
